﻿using Looptribe.Moodlin8.Model;

namespace Looptribe.Moodlin8.ViewModel
{
    public class MessageWrapper : Wrapper<InstantMessage>
    {
        public string Subject
        {
            get { return WrappedObject.Subject; }
        }

        public string Body
        {
            get { return WrappedObject.FullMessage; }
        }

        private readonly UserWrapper _sender;
        public UserWrapper Sender
        {
            get { return _sender; }
        }

        public MessageWrapper(InstantMessage wrappedObject) : base(wrappedObject)
        {
            _sender = new UserWrapper(WrappedObject.UserFrom);
        }
    }
}
